package com.jzlin.funhub.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzlin.funhub.admin.model.dto.ArticleCategoryGroupDTO;
import com.jzlin.funhub.admin.model.entity.ArticleCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文章分类表 Mapper 接口
 * </p>
 *
 * @author jzlin
 * @since 2025-07-17
 */
public interface ArticleCategoryMapper extends BaseMapper<ArticleCategory> {
    /**
     * 统计分类下的文章数量
     * @return
     */
    List<ArticleCategoryGroupDTO> countArticleByCategory(@Param("authorId") Long authorId);
}
